-- GENERATED SPELL FOR [Kolkar Waylayer] --


function spell0_12976(pUnit, Event) --@Enveloping Winds,n/a--
pUnit:FullCastSpellOnTarget(6728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12976', 12000, 1)
end

function spell1_12976(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12976', 3000, 1)
end

function Sorts_12976(pUnit, Event)
local choix_sorts_12976 = math.random(0, 1)
if choix_sorts_12976 == 0 then
pUnit:RegisterEvent('spell0_12976', 1, 1)
end
if choix_sorts_12976 == 1 then
pUnit:RegisterEvent('spell1_12976', 1, 1)
end
end

function mob12976_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12976', math.random(1500, 3000), 1)
end

function mob12976_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12976_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12976_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12976, 1, 'mob12976_Action')
RegisterUnitEvent(12976, 2, 'mob12976_Leave')
RegisterUnitEvent(12976, 3, 'mob12976_Kill')
RegisterUnitEvent(12976, 4, 'mob12976_Die')
